<?php

declare(strict_types=1);

namespace App\Request\Client\TaskEmployer;


use App\Constants\Model\TaskExec;
use Hyperf\Validation\Request\FormRequest;
use Hyperf\Validation\Rule;

class ProcessAuditRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'audit_status' => [
                'required',
                Rule::in(
                    [
                        TaskExec::AUDIT_STATUS_SUCCESS,
                        TaskExec::AUDIT_STATUS_FAIL
                    ]
                )
            ],
            'audit_fail_context' => ''
        ];
    }


}